{% extends "enterprise/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
<script type="text/javascript">
    var primary_menu = "menu_2";
    var sub_menu = "menu_2_2";
</script>
<div class="col-md-12">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <div class="panel-title"><h3>贮罐区</h3></div>
            <div class="panel-options">
                <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
            </div>
        </div>
        <div class="panel-body with-table">

        <form action='' method='post' class="formSubmit">
        <table class="input_in table-detail">
            <tr>
                <th width="60">名称</th>
                <td><input datatype="*" name='name' value='{{ sa.name }}' type="text" placeholder="请输入"></td>
            </tr>
            <tr>
                <th width="60">描述</th>
                <td>
                <textarea name="desc"  placeholder="请输入" style="resize:no;" datatype="*">{{ sa.desc }}</textarea></td>
            </tr>
        </table>
       
        </div>
    </div>
    <div class="buttons">
        <input class="btn btn-orange btn-lg" onclick="submitHold();" type='submit' value="暂存">
        <input class="btn btn-info btn-lg" type="submit" value="确认" />
    </div>
</form>
</div>
{% endblock %}

{% block js %}
    <script>
        ;$(function(){
            $('select[name=is_dangerous]').val('{{ m.is_dangerous }}');
            $('select[name=is_emphasis]').val('{{ m.is_emphasis }}');
            $('select[name=physical_form]').val('{{ m.physical_form }}');
            $('select[name=hazard_pro]').val('{{ m.hazard_pro }}');   
        })

        function submitHold(){
            demo.submitForm(true,"?key=hold");
            return false;
        }
    </script>
{% endblock %}